package com.ruoyi.pyo.wechat.body.resp;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class UserPhoneNumberRespBody extends RespBody {
    @JsonProperty("phone_info")
    private PhoneNumberInfo phoneInfo;

    @Data
    static class PhoneNumberInfo {

        @JsonProperty("phoneNumber")
        private String phoneNumber;

        @JsonProperty("purePhoneNumber")
        private String purePhoneNumber;

        @JsonProperty("countryCode")
        private int countryCode;

        @JsonProperty("watermark")
        private Watermark watermark;
    }

    @Data
    static class Watermark {

        @JsonProperty("timestamp")
        private long timestamp;

        @JsonProperty("appid")
        private String appid;
    }
}
